<template>
    <a href="#" @click.prevent="push">
        <slot />
    </a>
</template>

<script setup>
    import {path} from '../router'
    const prop = defineProps({
        to:{type:String,required:true}
    });
    const push = () => {
        path.value = prop.to;
    }
</script>

<style lang="scss" scoped>

</style>